package com.hb.core.pojo.project.section.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb.core.pojo.parent.MPCommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 二次报价标段信息表
 * </p>
 *
 * @author fengbin
 * @since 2022-02-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "TradeSecondQuotationBidInfo对象", description = "二次报价标段信息表")
public class TradeSecondQuotationBidInfo extends MPCommonEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "标段id")
    private Long sectionId;

    @ApiModelProperty(value = "项目id")
    private Long projectId;

    @ApiModelProperty(value = "开标标段id")
    private Long openingBidId;

    @ApiModelProperty(value = "轮次")
    private Integer turns;

    @ApiModelProperty(value = "总轮次")
    private String turnsTotal;

    @ApiModelProperty(value = "结束状态： 0：正在进行中 1：进入下一轮 2：结束")
    private String endType;

    @ApiModelProperty(value = "报价截止时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

}
